<template>
	<Loading ref="loading"/>
</template>

<script>
	import Loading from '@/components/loding.vue'
	export default {
		data() {
			return {
				state:false
			}
		},
		methods: {
			
		},
		components:{Loading},
		onShow() {
			if(this.state){
				uni.navigateBack()
			}
		},
		onLoad(e) {
			this.$nextTick(() => {
				this.$refs.loading.init()
				this.$refs.loading.progress = 100
			})
			this.$request('/api/hlx-building/addNavigationCount', {
				id: uni.getStorageSync('userId')
			},'get')
			uni.openLocation({
				...JSON.parse(e.params).params,
				success:()=>{
					this.state = true
				}
			})
		}
	}
</script>

<style>

</style>
